package com.md.lession01;

import java.util.Scanner;

public class Demo01{
	public static void main(String[] args)
	{
		int[] arr = new int[5];
		Scanner scan = new Scanner(System.in);
		for(int i = 0 ; i < arr.length ; i++) 
		{
			System.out.println(""+ (i+1) +"");
			arr[i] = scan.nextInt();
		}
		printArr(arr);
	}
	
	public static void printArr(int[] pArr)
	{
		for(int i = 0 ; i < pArr.length + 1 ; i++)
		{
			if(i == 0)
			{
				System.out.print("[");
			}
			
			if(i < pArr.length & i >= 1)
			{
				System.out.print(pArr[i - 1]+",");
			}
			
			if(i == pArr.length -1)
			{
				System.out.print(pArr[i]+"]");
			}
			
		}
		
	}
	
}